﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Repetition.Domain;

namespace Repetition.Persistence.FluentNHibernate.Mapping
{
    public class SubjectMap : ClassMap<Subject>
    {
        public SubjectMap()
        {
            Id(x => x.Id)
                .GeneratedBy.Native();

            Map(x => x.Name);
            Map(x => x.Details);
        }
    }
}
